import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.lang.reflect.Field;

public class Main1 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext1 ctx = new ClassPathXmlApplicationContext1("applicationContext.xml");
        MoAttack moAttack = (MoAttack) ctx.getBean("moAttackbean");
        moAttack.cityGateAsk();
    }
}
